//简历自我评价
import React, { Component } from 'react'
import {
    View,
    Text,
    TouchableOpacity,
} from 'react-native';

import { resumesevenStyle as styles } from '../../../../../styles';
import Icon from 'react-native-vector-icons/Ionicons';


export default class Resumeappraise extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
            <View style={styles.sevenall}>
                <View style={styles.ninesp}>

                    <Text style={styles.seventop}>自我评价</Text>
                    <View style={styles.sevenallin}>
                        <Text style={styles.sevenev3}>{this.props.resume.filed1}</Text>

                    </View>
                    <TouchableOpacity style={styles.touch} activeOpacity={1}
                        onPress={() => { this.goGet('Evaluation', this.props.resume, this.props.actions) }}>
                        <Icon
                            name={'md-create'}
                            size={16}
                            color={'#3d9ccc'} />
                    </TouchableOpacity>
                </View>
                {this.props.resume.filed1 == null ? <TouchableOpacity style={styles.sevenbot} activeOpacity={1}
                    onPress={() => { this.goGet('Evaluation', this.props.resume) }}>
                    <Icon
                        name={'md-add'}
                        size={20}
                        color={'#3d9ccc'} style={styles.seveniconb2} />
                    <Text style={styles.seventxt1}>添加自我评价</Text>
                </TouchableOpacity> : null}
            </View>
        )
    }
    goGet(name, resume, actions) {
        this.props.navigation.navigate(name, { xzresume: resume, actions: actions });
    }
}